const requestBody = {
  text: "欢迎使用语音云服务。",
  config:
  {
    audio_format: "mp3",
    sample_rate: "8000",
    property: "chinese_xiaoyan_common",
    speed: 10,
    pitch: 10,
    volume: 60
  }
}
export const getTTs = async (token: string) => await fetch('https://iam.cn-north-4.myhuaweicloud.com/v1/cn-southwest-2/tts', {
  method: 'post',
  body: JSON.stringify(requestBody),
  headers: { 'Content-Type': 'application/json', 'X-Auth-Token': token }
}).then(res => {
  console.log(res);
  return res
})